﻿using MyApplication.Dtos;
using MyEFCore;

namespace MyApplication
{
    public interface IProductService
    {
        Task<IQueryable<Product>> GetAllPrpoductsAsync();
        Task<ProductDto> GetProductByIdAsync(int id);
        Task<int> CreateNewProductAsync(CreateProductDto product);
        Task<ProductDto> GetProductByNameAsync(string name);
        Task UpdateProductAsync(int id, UpdateProductDto product);

        Task DeleteProductAsync(int id);
    }
}
